When you populate a field on an Xpage programmatically (i.e through an onclick event of a button), you will need to directly update the datasource field on the backend in order to keep the two values in sync. The reason for doing this is because the JSP lifecycle updates the backend datasource ...